package com.hm.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
* @Description: 短链Apollo配置
* @param
* @return
* @throws
* @author Coder编程
* @date 2021/6/16 16:41
*/
@Data
@Configuration
@ConfigurationProperties(prefix = "hm.short.config")
public class ShortUrlConfig {

    /**
     * 每次发号个数
     */
    private Long incrementStep;
    /**
     * 短链域名
     */
    private String shortDomainName;
    /**
     * 短链缓存前缀
     */
    private String shortUrlRedisKeyPrefix;

    /**
     * 单次批量生成短链最大限制
     */
    private Integer batchGenerationLimit;

}
